import request from '@/utils/request';

// 首页
export const homelist = data => request({ url: '/home/index', method: 'get', data });
// 标签
export const topList = data => request({ url: '/home/tag', method: 'get', data });
// 短句列表
export const videoLists = data => request({ url: '/home/list', method: 'post', data });

export const bannerList = data => request({url:'/playlet/baseBanner',method:'get'});

// export const login = data => request({ url: '/home/login', method: 'post', data });
// 视频
export const epiList = data => request({ url: `/home/episodes/${data.id}`, method: 'get' });
// 下单
export const OrderApi = data => request({ url: '/home/order', method: 'post', data });
// 订单列表
export const OrderListApi = data => request({ url: '/home/orderlist', method: 'get', data });


// 登录接口
export function loginApi(data) {
    return request.post('/home/login', data);
}
